﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// UI的基类
/// </summary>
[RequireComponent(typeof(CanvasGroup))]
public class UIBase : MonoBehaviour {
    //UI的名字
    public string UIName = "";
    //必须包含这个组件用来设置UI射线检测点击
    protected CanvasGroup canvasGroup;
    public virtual void Start() { canvasGroup = GetComponent<CanvasGroup>(); }
    //UI进入
    public virtual void DoOnEntering() { }
    //UI暂停
    public virtual void DoOnPausing() { }
    //UI重启
    public virtual void DoOnResuming() { }
    //UI退出
    public virtual void DoOnExiting() { }

}
